<?php

/**
 * Template for Edit profile form
 * 
 */
class tplUploadresourceform extends StudyBuddy\Template\Template {

    protected static $vars = array(
        'token' => '', // 1
        'formTitle' => 'Create new resource', //2
        'title' => '', //3
        'title_l' => 'Title', //4
        'title_e' => '', //5
        'description' => '', //6
        'description_l' => 'Description', //7
        'description_e' => '', //8
        'submit' => 'Upload', //9
        'formError' => '', //10
        'title_d' => 'Plain text only, no html', //11
        'description_d' => 'Plain text only, no html', //12
        'resourceLabel' => 'Resource', //13
        'resourceSrc' => '', //14
        'resource_file' => '', //15
        'resourceTos' => 'Upload Resource File. Maximum size of 30Mb<br><span class="smaller">By uploading a file you certify that you have the right to distribute this picture and that it does not violate the Terms of Service.</span>', //16
        'maxResourceSize' => '30720000', //17
        'resource_file_e' => '', //18
        'message' => '', //19
        'category' => '', //20
        'category_l' => 'Category', //21
        'category_e' => '', //22
        'level' => '', //23
        'level_l' => 'Level', //24
        'level_e' => '', //25
        'subject' => '', //26
        'subject_l' => 'Subject', //27
        'subject_e' => '', //28
    );
    protected static $tpl = '
	<form name="urForm" method="POST" action="/index.php" enctype="multipart/form-data" accept-charset="utf-8">
		<input type="hidden" name="a" value="uploadresource">
		<input type="hidden" name="token" value="%1$s">
		<div id="tools" class="form_wrap" style="width:500px">
			%19$s
			<h1>%2$s</h1>
			<div class="form_error">%10$s</div>
			<table class="larger vtop eprofile">
				<tr>
					<td align="right" width="180px">%4$s:</td>
					<td>
                        <input type="text" size="35" id="id_title" name="title" value="%3$s" />
                        <span class="f_err">%5$s</span>
                        <br><div class="smaller">%11$s</div> 
                    </td>
				</tr>
				<tr>
					<td align="right" width="180px">%7$s:</td>
					<td>
                        <textarea id="id_description" rows="8" cols="44" class="com_body9" name="description">%6$s</textarea>
                        <span class="f_err">%8$s</span>
						<br><span class="fl cb caption">%12$s</span>
                    </td>
				</tr>
				<tr>
					<td align="right" width="180px">%13$s:</td>
					<td>
						<table padding="0">
							<tr class="profile_img">
								<td width="50px">
									%14$s
								</td>
                            </tr>
                            <tr>
								<td>
									<div class="fl"> 
										<span id="avatar_upload" class="fl _pic_upload"> 
											<span class="fl">You may upload your resource file</span>
											<input type="hidden" name="MAX_FILE_SIZE" value="%17$s">
											<input id="id_resource_file" name="resource_file" size="20" type="file"> 
                                                                                        Allow only the file extension *.doc, *.docx, *.xls, *.xlsx, *.ppt, *.pptx, *.pdf, *.jpg, *.jpeg, *.png, *.txt
											<span class="f_err">%18$s</span>
											<br><div class="smaller">%16$s</div> 
										</span>
									</div> 
								</td>
							</tr>
						</table>
					</td>
				</tr>
                <tr>
					<td align="right" width="180px">%21$s:</td>
					<td>
                        <select name="category">
                            <option value="">Select Category</option>
                            <option value="1">Note and Mindmaps</option>
                            <option value="2">Textbook	solutions</option>
                            <option value="3">Exam	papers Solutions</option>
                            <option value="4">Suggested Study schedule</option>
                            <option value="5">Study Checklist</option>
                            <option value="6">Coming Soon</option>
                        </select>
                    </td>
				</tr>
                <tr>
					<td align="right" width="180px">%24$s:</td>
					<td>
                        <select name="level">
                            <option value="">Select Level</option>
                            <option value="1">P1</option>
                            <option value="2">P2</option>
                            <option value="3">P3</option>
                            <option value="4">P4</option>
                            <option value="5">P5</option>
                            <option value="6">P6</option>
                            <option value="7">S1</option>
                            <option value="8">S2</option>
                            <option value="9">S3&S4</option>
                        </select>
                    </td>
				</tr>
                <tr>
					<td align="right" width="180px">%27$s:</td>
					<td>
                        <select name="subject">
                            <option value="">Select Subject</option>
                            <option value="1">E Maths</option>
                            <option value="2">A Maths</option>
                            <option value="3">Physics</option>
                        </select>
                    </td>
				</tr>
                <tr>
					<td align="right" width="180px"></td>
					<td>
                        <input id="douploadresoure" name="submit" type="submit" class="" value="Upload" />
                    </td>
				</tr>
			</table>
		</div>
	</form>';

}

